package semiproject.models;

public class ProfessorVO {
    private String pfno;
	private String name;
	private String fields;
	private String skills;

	
	public ProfessorVO(String name, String fields, String skills) {
		this.name = name;
		this.fields = fields;
		this.skills = skills;
	}// public ProfessorVO
	//    private String pfno;값은 따로 생성자에 넣어주지 않아도 됨.
	//  이유는 자동 생성이 되지 때문
	//  다만, 메소드나  to string엔 값을 넣어 줘야 함 

	
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}
	public String getFields() {return fields;}
	public void setFields(String fields) {this.fields = fields;}
	public String getSkills() {return skills;}
	public void setSkills(String skills) {this.skills = skills;} 
	public String getPfno() {	return pfno;	}
	public void setPfno(String pfno) {this.pfno = pfno;}

	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(name).append("/").append(fields).append("/").append(skills)
				.append("/").append(pfno);
		return sb.toString();
		/*
		 * String result = ""; result += pfno+ "/" +name + "/" + fields + "/" +
		 * skills; return result;
		 */
	}
}  // public class ProfessorVO
